package com.webster.isw.core.gen.entity;

import java.io.Serializable;
import java.util.Date;

public class ScTriggerLog implements Serializable {
    private String id;

    private Date intendFireAt;

    private Date realFireAt;

    private Date realEndAt;

    private Integer jobCostTime;

    private String statusStr;

    private String result;

    private String errorMsg;

    private String triggerName;

    private String triggerGroup;

    private String jobName;

    private String jobGroup;

    private String jobClass;

    private String threadGroupName;

    private String threadId;

    private String threadName;

    private String threadPriority;

    private String scheduledId;

    private String scheduledName;

    private Date createAt;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Date getIntendFireAt() {
        return intendFireAt;
    }

    public void setIntendFireAt(Date intendFireAt) {
        this.intendFireAt = intendFireAt;
    }

    public Date getRealFireAt() {
        return realFireAt;
    }

    public void setRealFireAt(Date realFireAt) {
        this.realFireAt = realFireAt;
    }

    public Date getRealEndAt() {
        return realEndAt;
    }

    public void setRealEndAt(Date realEndAt) {
        this.realEndAt = realEndAt;
    }

    public Integer getJobCostTime() {
        return jobCostTime;
    }

    public void setJobCostTime(Integer jobCostTime) {
        this.jobCostTime = jobCostTime;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr == null ? null : statusStr.trim();
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg == null ? null : errorMsg.trim();
    }

    public String getTriggerName() {
        return triggerName;
    }

    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName == null ? null : triggerName.trim();
    }

    public String getTriggerGroup() {
        return triggerGroup;
    }

    public void setTriggerGroup(String triggerGroup) {
        this.triggerGroup = triggerGroup == null ? null : triggerGroup.trim();
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName == null ? null : jobName.trim();
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup == null ? null : jobGroup.trim();
    }

    public String getJobClass() {
        return jobClass;
    }

    public void setJobClass(String jobClass) {
        this.jobClass = jobClass == null ? null : jobClass.trim();
    }

    public String getThreadGroupName() {
        return threadGroupName;
    }

    public void setThreadGroupName(String threadGroupName) {
        this.threadGroupName = threadGroupName == null ? null : threadGroupName.trim();
    }

    public String getThreadId() {
        return threadId;
    }

    public void setThreadId(String threadId) {
        this.threadId = threadId == null ? null : threadId.trim();
    }

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName == null ? null : threadName.trim();
    }

    public String getThreadPriority() {
        return threadPriority;
    }

    public void setThreadPriority(String threadPriority) {
        this.threadPriority = threadPriority == null ? null : threadPriority.trim();
    }

    public String getScheduledId() {
        return scheduledId;
    }

    public void setScheduledId(String scheduledId) {
        this.scheduledId = scheduledId == null ? null : scheduledId.trim();
    }

    public String getScheduledName() {
        return scheduledName;
    }

    public void setScheduledName(String scheduledName) {
        this.scheduledName = scheduledName == null ? null : scheduledName.trim();
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ScTriggerLog other = (ScTriggerLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIntendFireAt() == null ? other.getIntendFireAt() == null : this.getIntendFireAt().equals(other.getIntendFireAt()))
            && (this.getRealFireAt() == null ? other.getRealFireAt() == null : this.getRealFireAt().equals(other.getRealFireAt()))
            && (this.getRealEndAt() == null ? other.getRealEndAt() == null : this.getRealEndAt().equals(other.getRealEndAt()))
            && (this.getJobCostTime() == null ? other.getJobCostTime() == null : this.getJobCostTime().equals(other.getJobCostTime()))
            && (this.getStatusStr() == null ? other.getStatusStr() == null : this.getStatusStr().equals(other.getStatusStr()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()))
            && (this.getErrorMsg() == null ? other.getErrorMsg() == null : this.getErrorMsg().equals(other.getErrorMsg()))
            && (this.getTriggerName() == null ? other.getTriggerName() == null : this.getTriggerName().equals(other.getTriggerName()))
            && (this.getTriggerGroup() == null ? other.getTriggerGroup() == null : this.getTriggerGroup().equals(other.getTriggerGroup()))
            && (this.getJobName() == null ? other.getJobName() == null : this.getJobName().equals(other.getJobName()))
            && (this.getJobGroup() == null ? other.getJobGroup() == null : this.getJobGroup().equals(other.getJobGroup()))
            && (this.getJobClass() == null ? other.getJobClass() == null : this.getJobClass().equals(other.getJobClass()))
            && (this.getThreadGroupName() == null ? other.getThreadGroupName() == null : this.getThreadGroupName().equals(other.getThreadGroupName()))
            && (this.getThreadId() == null ? other.getThreadId() == null : this.getThreadId().equals(other.getThreadId()))
            && (this.getThreadName() == null ? other.getThreadName() == null : this.getThreadName().equals(other.getThreadName()))
            && (this.getThreadPriority() == null ? other.getThreadPriority() == null : this.getThreadPriority().equals(other.getThreadPriority()))
            && (this.getScheduledId() == null ? other.getScheduledId() == null : this.getScheduledId().equals(other.getScheduledId()))
            && (this.getScheduledName() == null ? other.getScheduledName() == null : this.getScheduledName().equals(other.getScheduledName()))
            && (this.getCreateAt() == null ? other.getCreateAt() == null : this.getCreateAt().equals(other.getCreateAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIntendFireAt() == null) ? 0 : getIntendFireAt().hashCode());
        result = prime * result + ((getRealFireAt() == null) ? 0 : getRealFireAt().hashCode());
        result = prime * result + ((getRealEndAt() == null) ? 0 : getRealEndAt().hashCode());
        result = prime * result + ((getJobCostTime() == null) ? 0 : getJobCostTime().hashCode());
        result = prime * result + ((getStatusStr() == null) ? 0 : getStatusStr().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        result = prime * result + ((getErrorMsg() == null) ? 0 : getErrorMsg().hashCode());
        result = prime * result + ((getTriggerName() == null) ? 0 : getTriggerName().hashCode());
        result = prime * result + ((getTriggerGroup() == null) ? 0 : getTriggerGroup().hashCode());
        result = prime * result + ((getJobName() == null) ? 0 : getJobName().hashCode());
        result = prime * result + ((getJobGroup() == null) ? 0 : getJobGroup().hashCode());
        result = prime * result + ((getJobClass() == null) ? 0 : getJobClass().hashCode());
        result = prime * result + ((getThreadGroupName() == null) ? 0 : getThreadGroupName().hashCode());
        result = prime * result + ((getThreadId() == null) ? 0 : getThreadId().hashCode());
        result = prime * result + ((getThreadName() == null) ? 0 : getThreadName().hashCode());
        result = prime * result + ((getThreadPriority() == null) ? 0 : getThreadPriority().hashCode());
        result = prime * result + ((getScheduledId() == null) ? 0 : getScheduledId().hashCode());
        result = prime * result + ((getScheduledName() == null) ? 0 : getScheduledName().hashCode());
        result = prime * result + ((getCreateAt() == null) ? 0 : getCreateAt().hashCode());
        return result;
    }
}